// 获取路基路面 0.95/√n*S（代表值使用） key为检测点数
export function getLjlmNum(key) {
  let number = 0;
  if (key < 30) {
    number = ljlmData[key];
    return number;
  }
  // 分隔字符串
  const a = key.toString().split("")[0];
  if (a == 1) {
    number = ljlmData[100];
  } else {
    number = ljlmData[Number(a) * 10];
  }
  return number;
}
// 路面温度
export const ljlmTemperatureData = [
  {
    label: "0",
    value: "-6"
  },
  {
    label: "5",
    value: "-4"
  },
  {
    label: "10",
    value: "-3"
  },
  {
    label: "15",
    value: "-1"
  },
  {
    label: "20",
    value: "0"
  },
  {
    label: "25",
    value: "2"
  },
  {
    label: "30",
    value: "3"
  },
  {
    label: "35",
    value: "5"
  },
  {
    label: "40",
    value: "7"
  }
];
const ljlmData = {
  1: 0,
  2: 4.465,
  3: 1.686,
  4: 1.177,
  5: 0.953,
  6: 0.823,
  7: 0.716,
  8: 0.67,
  9: 0.62,
  10: 0.58,
  11: 0.546,
  12: 0.518,
  13: 0.494,
  14: 0.473,
  15: 0.455,
  16: 0.436,
  17: 0.423,
  18: 0.41,
  19: 0.398,
  20: 0.387,
  21: 0.376,
  22: 0.367,
  23: 0.358,
  24: 0.35,
  25: 0.342,
  26: 0.335,
  27: 0.328,
  28: 0.322,
  29: 0.316,
  30: 0.31,
  40: 0.266,
  50: 0.237,
  60: 0.216,
  70: 0.199,
  80: 0.186,
  90: 0.173,
  100: 0.166
};
